<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="/WEB-INF/tld/ce.tld" prefix="ce" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/cases/execute/";  //应用的地址名
String inRegActionName = basePath+"caseSourceExecute_inReg.action";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>执行情况入库登记</title>
<script type="text/javascript">
<!--
           $(function(){
            
               $('#checkHead').validatebox({
                   required:'true',
                   missingMessage:'请输入主查人员',
                   validType:'length[1,25]'
               });
               $(':input','.tb_add_th').each(function(){
            	   $(this).numberbox({
                       missingMessage:'请输入合法的数字！'
                   });
               });
               
               $(':input','#table_1').each(function(){
            	  $(this).blur(function(){
            		  calc('table_1');
            	  });
               });
               
               $(':input','#table_2').each(function(){
             	  $(this).blur(function(){
             		  calc('table_2');
             	  });
                });
	           //点击添加按钮操作
			   $('#addBtn').click(function(){
                   $('#editForm').submit();
	            });
	            //表单验证及提交处理操作
	           $('#editForm').form({
			        url:'<%=inRegActionName%>',
			        onSubmit: function(){
			           if($(this).form('validate')){
			                 $.util.showLoading();
			                 $('#operateWindow').window('close');
                            return true;
			             }else{
			                return false;
			             }
			        },
			        success:function(data){
			            $.util.removeLoading();
                        returnOptMsg(data);
			        }
				});
	            
	            
           });
           function calc(tablId){
        	   var count=0;
        	   $(':input[type="hidden"]','#'+tablId+'').each(function(){
        		   if($(this).val()!="")
        		     count=count+parseInt($(this).val());
               });
        	   if(tablId=='table_1'){
        		   $('#total_1').text(count);
        		   $('#amountTax').val(count);
        	   }else if(tablId=='table_2'){
        		   $('#total_2').text(count);
        		   $('#amountFine').val(count);
        	   }
          	     
           }
//-->
</script>
  </head>
  <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
   <s:form action="editForm" method="post">
    <s:hidden name="po.vcId"/>
    <s:hidden name="po.caseId"/>
    <s:hidden name="po.caseNumber"/>
    <s:hidden name="po.enterprice"/>
    <s:hidden id="amountTax" name="po.amountTax"/>
    <s:hidden id="amountFine" name="po.amountFine"/>
    <br/>
    <fieldset style="border:1px solid #d2dfe6;font-weight:bold;">
	  <legend>税款（元）</legend>
    <table align="center" class="tb_add_th" width="100%" id="table_1">
        <tr>
        <th align="left" width="180">国内增值税：</th>
        <td align="left"><s:textfield name="po.localAddedTax" id="localAddedTax"  style="width:130px"/></td>
        <th align="left" width="180">国内消费税：</th>
        <td align="left"><s:textfield name="po.localCostTax" id="localCostTax"  style="width:130px"/></td>
      </tr>
      <tr>
        <th align="left" >营业税：</th>
        <td align="left"><s:textfield name="po.operationTax" id="operationTax"  style="width:130px"/></td>
        <th align="left" >城市建设维护税：</th>
        <td align="left"><s:textfield name="po.constructionTax" id="constructionTax"  style="width:130px"/></td>
      </tr>
        <tr>
        <th align="left" >企业所得税：</th>
        <td align="left"><s:textfield name="po.entIncomeTax" id="entIncomeTax"  style="width:130px"/></td>
          <th align="left" >个人所得税：</th>
        <td align="left"><s:textfield name="po.personalIncomeTax" id="personalIncomeTax"  style="width:130px"/></td>
      </tr>
        <tr>
        <th align="left" >资源税：</th>
        <td align="left"><s:textfield name="po.resourceTax" id="resourceTax"  style="width:130px"/></td>
         <th align="left" >教育费附加税：</th>
        <td align="left"><s:textfield name="po.educationTax" id="educationTax"  style="width:130px"/></td>
      </tr>
      <tr> <th align="left" >合计：</th>
        <td align="left" colspan="3" id="total_1"><s:property value="po.amountTax"/></td></tr>
     </table>
     </fieldset>
       <fieldset style="border:1px solid #d2dfe6;font-weight:bold;">
	  <legend>罚款（元）</legend>
       <table align="center" class="tb_add_th" width="100%" id="table_2">
        <tr>
        <th align="left" width="180">罚款：</th>
        <td align="left"><s:textfield name="po.faKuanMoney" id="faKuanMoney"  style="width:100px"/></td>
        
         <th align="left" width="180">调减留抵税额：</th>
        <td align="left"><s:textfield name="po.adjustFillTax" id="adjustFillTax"  style="width:130px"/></td>
      </tr>
    
        <tr>
        <th align="left" >不予抵扣税款：</th>
        <td align="left"><s:textfield name="po.noFillTax" id="noFillTax"  style="width:130px"/></td>
        <th align="left" >不予免、抵、退税：</th>
        <td align="left"><s:textfield name="po.noFillbackTax" id="noFillbackTax"  style="width:130px"/></td>
      </tr>
     
        <tr>
        <th align="left" >调整应纳税所得额：</th>
        <td align="left"><s:textfield name="po.adjustIncome" id="adjustIncome"  style="width:130px"/></td>
        <th align="left" >加收滞纳金：</th>
        <td align="left"><s:textfield name="po.addedFine" id="addedFine"  style="width:130px"/></td>
      </tr>
        <tr>
        <th align="left" >追缴已退税款：</th>
        <td align="left"><s:textfield name="po.recoveredRefundedTax" id="recoveredRefundedTax"  style="width:130px"/></td>
        <th align="left">没收违法所得：</th>
        <td align="left"><s:textfield name="po.illegalMoney" id="illegalMoney"  style="width:130px"/></td>
      </tr>
      <tr> <th align="left" >合计：</th>
        <td align="left" colspan="3" id="total_2"><s:property value="po.amountFine"/></td></tr>
   </table>
   </fieldset>
   </s:form>
  </body>
</html>

